
#include "Person.h"
#include <iostream>

using namespace npDecorator;
using namespace std;


Person::Person()
{
    this->name = "";
}

Person::~Person()
{

}

Person::Person(const Person& cpy)
{
    this->name = cpy.name;
}

Person& Person::operator=(const Person& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        this->name = asn.name;
        return *this;
    }
}

Person* Person::clone() const
{
    return new Person(*this);
}

Person::Person(string name)
{
    this->name = name;
}

void Person::show() const
{
    cout << "装扮的" << this->name << endl;
}
